home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / raytracers / _pvray / pv / scenes / bezier < prev    next >
Encoding:
Text File  |  1991-11-03  |  1.3 KB  |  53 lines

  1. // Persistence of Vision Raytracer
  2. // Simpler Bezier patch example
  3. // by Alexander Enzmann
  4.  
  5.  
  6. #include "<PVray$Dir>.dat.shapes"
  7. #include "<PVray$Dir>.dat.colors"
  8. #include "<PVray$Dir>.dat.textures"
  9.  
  10. object
  11.    bicubic_patch 1 8 8
  12.       < 0.0  0.0  2.0>  < 1.0  0.0  0.0>  < 2.0  0.0  0.0>  < 3.0  0.0 -2.0>
  13.       < 0.0  1.0  0.0>  < 1.0  1.0  0.0>  < 2.0  1.0  0.0>  < 3.0  1.0  0.0>
  14.       < 0.0  2.0  0.0>  < 1.0  2.0  0.0>  < 2.0  2.0  0.0>  < 3.0  2.0  0.0>
  15.       < 0.0  3.0  2.0>  < 1.0  3.0  0.0>  < 2.0  3.0  0.0>  < 3.0  3.0 -2.0>
  16.       texture checker color red 1.0 color blue 1.0 rotate <90 0 0>
  17.               ambient 0.1 diffuse 0.9 phong 1 end_texture
  18.    end_bicubic
  19.    translate <-1.5 -1.5 0>
  20.    scale <2 2 2>
  21.    rotate <30 -60 0>
  22.    bounded_by sphere <0 0 0> 6 end_sphere end_bound
  23. end_object
  24.  
  25. // Back wall 
  26. object
  27.    plane <0 0 1> 500 end_plane
  28.    texture
  29.       color red 0.4 green 0.4 blue 0.4
  30.       // color White 
  31.    end_texture
  32. end_object
  33.  
  34. view_point
  35.    location  <0.0  0.0 -15.0>
  36.    right     <1.3333  0.0  0.0>
  37.    up        <0.0  1.0  0.0>
  38.    direction <0.0  0.0  1.0>
  39. end_view_point
  40.  
  41. // Light source 
  42. object
  43.    sphere <0 0 0> 0.1 end_sphere
  44.    translate <5 7 -5> 
  45.    texture
  46.      colour White
  47.      ambient 1.0
  48.      diffuse 0.0
  49.    end_texture
  50.    light_source
  51.    colour White
  52. end_object
  53.